package com.vincent.sciinfo.service;

import com.github.pagehelper.PageInfo;
import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-teacher", configuration = FeignPassToken.class)
public interface TeacherService {

    @RequestMapping("/teacher/selectAllTeacher")
    PageInfo selectAllTeacher(@RequestParam Integer pn, @RequestParam Integer pageSize);

    @RequestMapping("/teacher/updateTeacher")
    int updateTeacher(@RequestParam String teacherId, @RequestParam int operaCode);

    @RequestMapping("/teacher/selectTeacherNotLogOut")
    List<Teacher> selectTeacherNotLogOut(@RequestParam int status);
}
